﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;

namespace Tasker.WebUI.Models.Tasks
{
    public class TaskWorker
    {
        public int Id { get; set; }
        public string Name { get; set; }
    }

    public class TaskListElem
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public DateTime StartDate { get; set; }
        public DateTime FinishDate { get; set; }
        public int AuthorId { get; set; }
        public string AuthorFullName{ get; set; }
        public int TaskWorkerId { get; set; }
        public string TaskWorkerFullName { get; set; }
        public IEnumerable<TaskWorker> Workers { get; set; } 
    }

    public class TaskListShowModel
    {
        public IEnumerable<TaskListElem> Tasks;
    }
}
